﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STX.Lib.Caching.Providers
{
    /// <summary>
    /// 返回一个 Null Provider
    /// </summary>
    public class NullCacheProvider:ICacheProvider
    {

        public T Get<T>(string key)
        {
            return default(T);
        }

        public void Set(string key, object value)
        {      
        }

        public void Set(string key, object value, int expiresSecond)
        {    
        }

        public bool IsSet(string key)
        {
            return false;
        }

        public void Remove(string key)
        { 
        }

        public void Clear()
        {  
        }

    }
}
